<extend name="Public:base" />
<block name="title"><title>心e购-我的收藏</title></block>
<block name="body">
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">收藏的店铺</h1>
	</header>
	<div class="mui-content">
		<div class="wdsc">
			<div class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-negative">
				<a class="mui-control-item mui-active" href="/Wap/Member/favorited">收藏的店铺</a>
				<a class="mui-control-item" href="/Wap/Member/favoritep">收藏的商品</a>
			</div>
			<div class="wdsc_main">
				<ul class="mui-table-view mui-table-view-chevron">
					<volist name="collects" id="vo">
					<li class="mui-table-view-cell mui-media scxx_list_box" tool="0">
						<a class="mui-navigate-right" href="/Wap/shop/index?store_id={$vo.st_id}">
							<img class="mui-media-object mui-pull-left" src="{$vo.store_label}">
							<div class="mui-media-body">
								<p class="mui-ellipsis">{$vo.store_name}</p>
								<p class="mui-ellipsis">{$vo.store_description}</p>
							</div>
						</a>
						<p class="list_gd"><i class="mui-icon mui-icon-more-filled"></i></p>
						<a class="mui-btn mui-btn-red del" href="javascript:collect_delete({$vo.c_id});">
							<i>删除</i>
						</a>
					</li>
					</volist>
				</ul>
			</div>
			
		</div>
		
	</div>
</block>
<block name="script">
	<script>
		function collect_delete(id) {
			mui.post('/Wap/Index/delete_collect', {
					id: id
				}, function(data) {
					if(data.code === 0) {
						location.reload();
					} else if(data.code === 2) {
						location.href="/Wap/Member/login";
					} else {
						alert(data.message);
					}
				}, 'json');
		}
	</script>
</block>